home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / tex / art11.doc < prev    next >
Encoding:
Text File  |  1986-12-16  |  15.2 KB  |  356 lines

  1. % ARTICLE DOCUMENT STYLE -- Released 4 September 1986
  2. %    for LaTeX version 2.09
  3. % Copyright (C) 1986 by Leslie Lamport
  4.  
  5. %  ****************************************
  6. %  *               FONTS                  *
  7. %  ****************************************
  8. %
  9.  
  10. \lineskip 1pt            % \lineskip is 1pt for all font sizes.
  11. \normallineskip 1pt
  12. \def\baselinestretch{1}
  13.  
  14. % Each size-changing command \SIZE executes the command
  15. %        \@setsize\SIZE{BASELINESKIP}\FONTSIZE\@FONTSIZE
  16. % where:
  17. %   BASELINESKIP = Normal value of \baselineskip for that size.  (Actual 
  18. %                  value will be \baselinestretch * BASELINESKIP.)
  19. %
  20. %  \FONTSIZE     = Name of font-size command.  The currently available
  21. %                  (preloaded) font sizes are: \vpt (5pt), \vipt (6pt),
  22. %                  \viipt (etc.), \viiipt, \ixpt, \xpt, \xipt, \xiipt,
  23. %                  \xivpt, \xviipt, \xxpt, \xxvpt.
  24. %  \@FONTSIZE    = The same as the font-size command except with an
  25. %                  '@' in front---e.g., if \FONTSIZE = \xivpt then
  26. %                  \@FONTSIZE = \@xivpt.
  27. %
  28. % For reasons of efficiency that needn't concern the designer,
  29. % the document style defines \@normalsize instead of \normalsize .  This is
  30. % done only for \normalsize, not for any other size-changing commands.
  31.  
  32. \def\@normalsize{\@setsize\normalsize{13.6pt}\xipt\@xipt
  33. \abovedisplayskip 11pt plus3pt minus6pt%
  34. \belowdisplayskip \abovedisplayskip
  35. \abovedisplayshortskip  \z@ plus3pt%   
  36. \belowdisplayshortskip  6.5pt plus3.5pt minus3pt}
  37.  
  38. \def\small{\@setsize\small{12pt}\xpt\@xpt
  39. \abovedisplayskip 10pt plus2pt minus5pt%
  40. \belowdisplayskip \abovedisplayskip
  41. \abovedisplayshortskip  \z@ plus3pt%   
  42. \belowdisplayshortskip  6pt plus3pt minus3pt
  43. \def\@listi{\topsep 6pt plus 2pt minus 2pt\parsep 3pt plus 2pt minus 1pt
  44. \itemsep \parsep}}
  45.  
  46. \def\footnotesize{\@setsize\footnotesize{11pt}\ixpt\@ixpt
  47. \abovedisplayskip 8pt plus 2pt minus 4pt%
  48. \belowdisplayskip \abovedisplayskip
  49. \abovedisplayshortskip \z@ plus 1pt%
  50. \belowdisplayshortskip 4pt plus 2pt minus 2pt
  51. \def\@listi{\topsep 4pt plus 2pt minus 2pt\parsep 2pt plus 1pt minus 1pt
  52. \itemsep \parsep}}
  53.  
  54. \def\scriptsize{\@setsize\scriptsize{9.5pt}\viiipt\@viiipt}
  55. \def\tiny{\@setsize\tiny{7pt}\vipt\@vipt}
  56. \def\large{\@setsize\large{14pt}\xiipt\@xiipt}
  57. \def\Large{\@setsize\Large{18pt}\xivpt\@xivpt}
  58. \def\LARGE{\@setsize\LARGE{22pt}\xviipt\@xviipt}
  59. \def\huge{\@setsize\huge{25pt}\xxpt\@xxpt}
  60. \def\Huge{\@setsize\Huge{30pt}\xxvpt\@xxvpt}
  61.  
  62. \normalsize  % Choose the normalsize font.
  63.  
  64.  
  65. %  ****************************************
  66. %  *            PAGE LAYOUT               *
  67. %  ****************************************
  68. %
  69. % All margin dimensions measured from a point one inch from top and side
  70. % of page.  
  71.  
  72. % SIDE MARGINS:
  73. \if@twoside                 % Values for two-sided printing:
  74.    \oddsidemargin 36pt      %   Left margin on odd-numbered pages.
  75.    \evensidemargin 74pt     %   Left margin on even-numbered pages.
  76.    \marginparwidth 100pt    %   Width of marginal notes.
  77. \else                       % Values for one-sided printing:
  78.    \oddsidemargin 54pt      %   Note that \oddsidemargin = \evensidemargin
  79.    \evensidemargin 54pt
  80.    \marginparwidth 83pt 
  81. \fi
  82. \marginparsep 10pt          % Horizontal space between outer margin and 
  83.                             % marginal note
  84.  
  85.  
  86. % VERTICAL SPACING:        
  87.                          % Top of page:
  88. \topmargin 27pt          %    Nominal distance from top of page to top of
  89.  
  90. \headheight 12pt         %    Height of box containing running head.
  91. \headsep 25pt            %    Space between running head and text.
  92. % \topskip = 10pt        %    '\baselineskip' for first line of page.
  93.                          % Bottom of page:
  94. \footskip 30pt           %    Distance from baseline of box containing foot 
  95.                          %    to baseline of last line of text.
  96.  
  97. % DIMENSION OF TEXT:
  98. % 24 Jun 86: changed to explicitly compute \textheight to avoid roundoff.
  99. % The value of the multiplier was calculated as the floor of the
  100. % old \textheight minus \topskip, divided by \baselineskip for \normalsize.
  101. % The old value of \textheight was 530.4pt.
  102. % \textheight is the height of text (including footnotes and figures, 
  103. % excluding running head and foot).
  104.  
  105. \textheight = 38\baselineskip
  106. \advance\textheight by \topskip
  107. \textwidth 360pt         % Width of text line.
  108.                          % For two-column mode: 
  109. \columnsep 10pt          %    Space between columns 
  110. \columnseprule 0pt       %    Width of rule between columns.
  111.  
  112. % A \raggedbottom command causes 'ragged bottom' pages: pages set to
  113. % natural height instead of being stretched to exactly \textheight.
  114.  
  115. % FOOTNOTES:
  116.  
  117. \footnotesep 7.7pt    % Height of strut placed at the beginning of every
  118.                       % footnote = height of normal \footnotesize strut,
  119.                       % so no extra space between footnotes.
  120.  
  121. \skip\footins 10pt plus 4pt minus 2pt  % Space between last line of text and 
  122.                                        % top of first footnote.
  123.  
  124. % FLOATS: (a float is something like a figure or table)
  125. %
  126. %  FOR FLOATS ON A TEXT PAGE:
  127. %
  128. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  129. \floatsep 12pt plus 2pt minus 2pt        % Space between adjacent floats moved
  130.                                          % to top or bottom of text page.
  131. \textfloatsep 20pt plus 2pt minus 4pt    % Space between main text and floats
  132.                                          % at top or bottom of page.
  133. \intextsep 12pt plus 2pt minus 2pt       % Space between in-text figures and 
  134.                                          % text.
  135. \@maxsep 20pt                            % The maximum of \floatsep, 
  136.                                          % \textfloatsep and \intextsep (minus
  137.                                          % the stretch and shrink).
  138. %    TWO-COLUMN FLOATS IN TWO-COLUMN MODE:
  139. \dblfloatsep 12pt plus 2pt minus 2pt     % Same as \floatsep for double-column
  140.                                          % figures in two-column mode.
  141. \dbltextfloatsep 20pt plus 2pt minus 4pt % \textfloatsep for double-column 
  142.                                          % floats.
  143. \@dblmaxsep 20pt                         % The maximum of \dblfloatsep and 
  144.                                          % \dbltexfloatsep.
  145.  
  146. %  FOR FLOATS ON A SEPARATE FLOAT PAGE OR COLUMN:
  147. %    ONE-COLUMN MODE OR SINGLE-COLUMN FLOATS IN TWO-COLUMN MODE:
  148. \@fptop 0pt plus 1fil    % Stretch at top of float page/column. (Must be    
  149.                          % 0pt plus ...)                                    
  150. \@fpsep 8pt plus 2fil    % Space between floats on float page/column.       
  151. \@fpbot 0pt plus 1fil    % Stretch at bottom of float page/column. (Must be 
  152.                          % 0pt plus ... )                                   
  153.  
  154. %   DOUBLE-COLUMN FLOATS IN TWO-COLUMN MODE.
  155. \@dblfptop 0pt plus 1fil % Stretch at top of float page. (Must be 0pt plus ...)
  156. \@dblfpsep 8pt plus 2fil % Space between floats on float page.
  157. \@dblfpbot 0pt plus 1fil % Stretch at bottom of float page. (Must be 
  158.                          % 0pt plus ... )                                   
  159. % MARGINAL NOTES:
  160. %
  161. \marginparpush 5pt       % Minimum vertical separation between two marginal 
  162.                          % notes.
  163.  
  164.  
  165. %  ****************************************
  166. %  *           PARAGRAPHING               *
  167. %  ****************************************
  168. %
  169. \parskip 0pt plus 1pt              % Extra vertical space between paragraphs.
  170. \parindent 17pt                    % Width of paragraph indentation.
  171. \topsep 9pt plus 3pt minus 5pt     % Extra vertical space, in addition to 
  172.                                    % \parskip, added above and below list and
  173.                                    % paragraphing environments.
  174. \partopsep 3pt plus 1pt minus 2pt  % Extra vertical space, in addition to 
  175.                                    % \parskip and \topsep, added when user
  176.                                    % leaves blank line before environment.
  177. \itemsep 4.5pt plus 2pt minus 1pt  % Extra vertical space, in addition to
  178.                                    % \parskip, added between list items.
  179.  
  180. % The following page-breaking penalties are defined
  181.  
  182. \@lowpenalty   51      % Produced by \nopagebreak[1] or \nolinebreak[1]
  183. \@medpenalty  151      % Produced by \nopagebreak[2] or \nolinebreak[2]
  184. \@highpenalty 301      % Produced by \nopagebreak[3] or \nolinebreak[3]
  185.  
  186. \@beginparpenalty -\@lowpenalty    % Before a list or paragraph environment.
  187. \@endparpenalty   -\@lowpenalty    % After a list or paragraph environment.
  188. \@itempenalty     -\@lowpenalty    % Between list items.
  189.  
  190. % \clubpenalty         % 'Club line'  at bottom of page.
  191. % \widowpenalty        % 'Widow line' at top of page.
  192. % \displaywidowpenalty % Math display widow line.
  193. % \predisplaypenalty   % Breaking before a math display.
  194. % \postdisplaypenalty  % Breaking after a math display.
  195. % \interlinepenalty    % Breaking at a line within a paragraph.
  196. % \brokenpenalty       % Breaking after a hyphenated line.
  197.  
  198.  
  199. %    ****************************************
  200. %    *             SECTIONS                 *
  201. %    ****************************************
  202. %
  203.  
  204. % \secdef{UNSTARCMDS}{STARCMDS} :
  205. %    When defining a sectionioning command without using
  206. %    \@startsection, you can use \secdef as follows:
  207. %       \def\part { ... \secdef \CMDA \CMDB }
  208. %       \def\CMDA  [#1]#2{ ... }     % Command to define \part[...]{...}
  209. %       \def\CMDB  #1{ ... }         % Command to define \part*{...}
  210.  
  211. \def\part{\par               % New paragraph
  212.    \addvspace{4ex}           % Adds vertical space above title.
  213.    \@afterindentfalse        % Suppresses indent in first paragraph.  Change
  214.    \secdef\@part\@spart}     % to \@afterindenttrue to have indent.
  215.  
  216. \def\@part[#1]#2{\ifnum \c@secnumdepth >\m@ne    % IF secnumdepth > -1
  217.         \refstepcounter{part}                    %  THEN step part counter
  218.         \addcontentsline{toc}{part}{\thepart     %       add toc line
  219.         \hspace{1em}#1}\else                     %  ELSE add unnumbered line
  220.       \addcontentsline{toc}{part}{#1}\fi         % FI
  221.    { \parindent 0pt \raggedright 
  222.     \ifnum \c@secnumdepth >\m@ne   % IF secnumdepth > -1 
  223.       \Large \bf Part \thepart     %   THEN Print 'Part' and 
  224.       \par\nobreak                 %          number in \Large boldface.
  225.     \fi                            % FI
  226.     \huge \bf                      % Select \huge boldface.
  227.     #2\markboth{}{}\par }          % Print title and set heading marks null.
  228.     \nobreak                       % TeX penalty to prevent page break.
  229.     \vskip 3ex                     % Space between title and text.
  230.    \@afterheading                  % Routine called after part and
  231.     }                              %     section heading.
  232.  
  233. % Heading for \part* command
  234. \def\@spart#1{{\parindent 0pt \raggedright 
  235.     \huge \bf                       
  236.     #1\par}                         % Title.
  237.     \nobreak                        % TeX penalty to prevent page break.
  238.     \vskip 3ex                      % Space between title and text.
  239.     \@afterheading                  % Routine called after part and
  240.   }                                 %     section heading.
  241.  
  242. % \@startsection {NAME}{LEVEL}{INDENT}{BEFORESKIP}{AFTERSKIP}{STYLE} 
  243. %            optional * [ALTHEADING]{HEADING}
  244. %    Generic command to start a section.  
  245. %    NAME       : e.g., 'subsection'
  246. %    LEVEL      : a number, denoting depth of section -- i.e., section=1,
  247. %                 subsection = 2, etc.  A section number will be printed if
  248. %                 and only if LEVEL < or = the value of the secnumdepth
  249. %                 counter.
  250. %    INDENT     : Indentation of heading from left margin
  251. %    BEFORESKIP : Absolute value = skip to leave above the heading.  
  252. %                 If negative, then paragraph indent of text following 
  253. %                 heading is suppressed.
  254. %    AFTERSKIP  : if positive, then skip to leave below heading,
  255. %                       else - skip to leave to right of run-in heading.
  256. %    STYLE      : commands to set style
  257. %  If '*' missing, then increments the counter.  If it is present, then
  258. %  there should be no [ALTHEADING] argument.  A sectioning command
  259. %  is normally defined to \@startsection + its first six arguments.
  260.  
  261. \def\section{\@startsection {section}{1}{\z@}{-3.5ex plus -1ex minus 
  262.     -.2ex}{2.3ex plus .2ex}{\Large\bf}}
  263. \def\subsection{\@startsection{subsection}{2}{\z@}{-3.25ex plus -1ex minus 
  264.    -.2ex}{1.5ex plus .2ex}{\large\bf}}
  265. \def\subsubsection{\@startsection{subsubsection}{3}{\z@}{-3.25ex plus 
  266.  -1ex minus -.2ex}{1.5ex plus .2ex}{\normalsize\bf}}
  267. \def\paragraph{\@startsection
  268.      {paragraph}{4}{\z@}{3.25ex plus 1ex minus .2ex}{-1em}{\normalsize\bf}}
  269. \def\subparagraph{\@startsection
  270.      {subparagraph}{4}{\parindent}{3.25ex plus 1ex minus 
  271.      .2ex}{-1em}{\normalsize\bf}}
  272.  
  273.  
  274. % Default initializations of \...mark commands.  (See below for their
  275. % us in defining page styles.
  276. %
  277.  
  278. % \def\sectionmark#1{}           % Preloaded definitions
  279. % \def\subsectionmark#1{}
  280. % \def\subsubsectionmark#1{}
  281. % \def\paragraphmark#1{}
  282. % \def\subparagraphmark#1{}
  283.  
  284. % The value of the counter secnumdepth gives the depth of the
  285. % highest-level sectioning command that is to produce section numbers.
  286. %
  287.  
  288. \setcounter{secnumdepth}{3}
  289.  
  290. % APPENDIX
  291. %
  292. % The \appendix command must do the following:
  293. %    -- reset the section and subsection counters to zero
  294. %    -- redefine the section counter to produce appendix numbers
  295. %    -- redefine the \section command if appendix titles and headings are
  296. %       to look different from section titles and headings.
  297.  
  298. \def\appendix{\par
  299.   \setcounter{section}{0}
  300.   \setcounter{subsection}{0}
  301.   \def\thesection{\Alph{section}}}
  302.  
  303.  
  304. %    ****************************************
  305. %    *                LISTS                 *
  306. %    ****************************************
  307. %
  308.  
  309. % The following commands are used to set the default values for the list
  310. % environment's parameters. See the LaTeX manual for an explanation of
  311. % the meanings of the parameters.  Defaults for the list environment are
  312. % set as follows.  First, \rightmargin, \listparindent and \itemindent
  313. % are set to 0pt.  Then, for a Kth level list, the command \@listK is
  314. % called, where 'K' denotes 'i', 'ii', ... , 'vi'.  (I.e., \@listiii is
  315. % called for a third-level list.)  By convention, \@listK should set
  316. % \leftmargin to \leftmarginK.
  317. %
  318. % For efficiency, level-one list's values are defined at top level, and
  319. % \@listi is defined to set only \leftmargin.
  320.  
  321. \leftmargini 2.5em
  322. \leftmarginii 2.2em     % > \labelsep + width of '(m)'
  323. \leftmarginiii 1.87em   % > \labelsep + width of 'vii.'
  324. \leftmarginiv 1.7em     % > \labelsep + width of 'M.'
  325. \leftmarginv 1em
  326. \leftmarginvi 1em
  327.  
  328. \leftmargin\leftmargini
  329. \labelsep .5em
  330. \labelwidth\leftmargini\advance\labelwidth-\labelsep
  331. \parsep 4.5pt plus 2pt minus 1pt
  332.  
  333. \def\@listi{\leftmargin\leftmargini}
  334.  
  335. \def\@listii{\leftmargin\leftmarginii
  336.    \labelwidth\leftmarginii\advance\labelwidth-\labelsep
  337.    \topsep 4.5pt plus 2pt minus 1pt
  338.    \parsep 2pt plus 1pt minus 1pt
  339.    \itemsep \parsep}
  340.  
  341. \def\@listiii{\leftmargin\leftmarginiii
  342.     \labelwidth\leftmarginiii\advance\labelwidth-\labelsep
  343.     \topsep 2pt plus 1pt minus 1pt 
  344.     \parsep \z@ \partopsep 1pt plus 0pt minus 1pt
  345.     \itemsep \topsep}
  346.  
  347. \def\@listiv{\leftmargin\leftmarginiv
  348.      \labelwidth\leftmarginiv\advance\labelwidth-\labelsep}
  349.  
  350. \def\@listv{\leftmargin\leftmarginv
  351.      \labelwidth\leftmarginv\advance\labelwidth-\labelsep}
  352.  
  353. \def\@listvi{\leftmargin\leftmarginvi
  354.      \labelwidth\leftmarginvi\advance\labelwidth-\labelsep}
  355.  
  356.